package com.tool4j.service;


import com.tool4j.entity.params.LoginParams;
import com.tool4j.entity.vo.LoginResponse;
import com.tool4j.entity.vo.UserDetail;
import org.springframework.web.server.ServerWebExchange;

/**
 * @author Deng.Weiping
 * @since 2023/10/31 11:10
 */
public interface AuthService {

    LoginResponse login(LoginParams params);

    /**
     * 发送验证码，存到redis中，五分钟过期
     *
     * @param params
     * @return
     */
    Boolean sendVerifyCode(LoginParams params);

    UserDetail userInfo(ServerWebExchange exchange);

    LoginResponse register(LoginParams params);

    void modifyPwd(LoginParams params);
}
